<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">店铺名称</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="shop_id" lay-search>
                    <option value=''>-- 全部 --</option>
                    {foreach $shopList as $key => $value}
                    <option value="{$value.id}" {if input('get.shop_id') eq $value.id} selected {/if}>{$value.name}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">时间</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="dateTime">
                    <option value='day' {if input('get.dateTime') eq 'day'} selected {/if}>当日数据</option>
                    <option value='yesterday' {if input('get.dateTime') eq 'yesterday'} selected {/if}>昨天数据</option>
                    <option value='week' {if input('get.dateTime') eq 'week'} selected {/if}>当周数据</option>
                    <option value='last_week' {if input('get.dateTime') eq 'last_week'} selected {/if}>上周数据</option>
                    <option value='month' {if input('get.dateTime') eq 'month'} selected {/if}>当月数据</option>
                    <option value='last_month' {if input('get.dateTime') eq 'last_month'} selected {/if}>上月数据</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">过滤重复人员</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="is_filter">
                    <option value='0' {if input('get.is_filter') eq 0} selected {/if}>否</option>
                    <option value='1' {if input('get.is_filter') eq 1} selected {/if}>是</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">进/出</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="is_come">
                    <option value=''>-- 请选择 --</option>
                    <option value='1' {if input('get.is_come') eq 1} selected {/if}>只看进店</option>
                    <option value='2' {if input('get.is_come') eq 2} selected {/if}>只看出店</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>

    </form>
    <script>form.render()</script>
</fieldset>